<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_task_report_appraise".
 *
 * @property string $id
 * @property string $report_id 报告id
 * @property string $appraise_content 评阅内容
 * @property int $appraise_score 分数
 * @property string $create_by 评阅老师
 * @property string $create_time 评阅时间
 * @property string $update_by 更新者
 * @property string $update_time 更新时间
 * @property int $del_flag 删除标志
 */
class TCourseTaskReportAppraise extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_task_report_appraise';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'appraise_score'], 'required'],
            [['appraise_content'], 'string'],
            [['appraise_score', 'del_flag'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'report_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'report_id' => 'Report ID',
            'appraise_content' => 'Appraise Content',
            'appraise_score' => 'Appraise Score',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
